/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package personas;

/**
 *
 * @author alumnom
 */
public class Alumno extends Persona {
    public String carrera;
    public int curso;
    public Alumno(String nom,String carr,int cur){
        super(nom);
        this.carrera=carr;
        this.curso=cur;
        
    }
    public void estudiar(){
        System.out.println("estudiando");
    }
}
